import Vue from 'vue';
import VueRouter from 'vue-router';
import VueResource from 'vue-resource';
import MintUi from 'mint-ui';
import 'mint-ui/lib/style.css';
//引入mui
import './static/render/mui/dist/css/mui.css';
//引入我们自己的是css
import './static/css/global.css';

//引入我們自己的文件
import App from './app.vue';
import Home from './components/home/home.vue';

//安装插件
Vue.use(VueRouter);
Vue.use(VueResource);
Vue.use(MintUi);

//创建路由对象并配置

let router = new VueRouter({
    routes: [
        { name: 'home', path: '/home', component: Home },
        { name: 'default', path: '/', redirect: '/home' },
    ]
});

//创建Vue实例对象
new Vue({
    el: '#app',
    router,
    render: c => c(App)
});
